const http = require('../../../utils/http.js'); 
Page({
  data: {
    carData: []
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    http.postRequest('/mini/v1/car_owner/car_info',{car_id: options.id}, res=> {
      if(res.data.enter_time) {
        res.data.enter_time = http.transTime(res.data.enter_time)
      }
      this.setData({
        carData: res.data
      })
    })
  },
  onShow(){
    
  },
  gopage() {
    wx.navigateTo({
      url: "/pages/classify/child/Tracker"
    })
  },
  jumpWash(){
    wx.navigateTo({
      url: '/pages/openOrder/repair/repair?item=' + JSON.stringify(this.data.carData)
    })
  }
})